public class MallardDuck extends Duck {
    public MallardDuck(String color, double heavy) {
        super(color, heavy);
    }

    // 重载setHeavy方法（参数类型不同）
    public void setHeavy(double heavy) {
        this.heavy = heavy;
        System.out.println("绿头鸭体重设置为：" + heavy);
    }

    public void setHeavy(String heavyDesc) {
        System.out.println("绿头鸭体重描述：" + heavyDesc);
    }

    // 重写父类方法
    @Override
    public void fly() {
        System.out.println("绿头鸭在空中翱翔");
    }

    @Override
    public void quack() {
        System.out.println("绿头鸭呱呱叫");
    }
}